body {
    width: 100%;
    height: 100%;
    background: #ededed;
}

#main {
    width: 100%;
    height: 100%;
}

.header {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 7rem;
    background: white;
    border-bottom: 0.1rem solid #e4e4e4;
}

.header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 0 2rem;
    height: 100%;
    font-size: 2.2rem;
}

.header-left img {
    height: calc(100% - 1rem);
}

.header-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 3rem 0 0;
    height: 100%;
}

.header-user {
    font-size: 2rem;
}

.header-user:hover {
    cursor: pointer;
    text-decoration: underline;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: calc(100% - 7rem);
}

.sidebar {
    flex-shrink: 0;
    width: 24rem;
    height: 100%;
    background: white;
    border-right: 0.1rem solid #e4e4e4;
}

.sidebar-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 6rem;
    border-bottom: 0.1rem solid #e4e4e4;
}

.sidebar-item:hover {
    cursor: pointer;
    background: #ededed;
}

.sidebar-item_active {
    background: #ededed;
}

.sidebar-item_active .sidebar-title::before {
    content: "[ ";
}

.sidebar-item_active .sidebar-title::after {
    content: " ]";
}

.sidebar-title {
    margin: 0 0 0 2rem;
    font-size: 2rem;
}

.content {
    overflow-y: hidden;
    flex-shrink: 1;
    width: 100%;
    height: 100%;
}



/* 用户管理页面css */
.wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.user {
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 1rem 1rem 8rem 1rem;
    width: 100%;
    height: 100%;
}

.user-add {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
}

.user-item {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1rem 0;
    padding: 1.5rem 1.5rem;
    width: 100%;
    font-size: 1.8rem;
    background: white;
    border-radius: 0.5rem;
}

.user-item span {
    margin-right: 0.6rem;
}

.user-item-left {
    flex-shrink: 1;
    box-sizing: border-box;
    padding: 0 1rem 0 0;
    width: 100%;
    height: 100%;
}

.user-oper {
    flex-shrink: 0;
}


/* 弹出的面板css设置 */
.pannel {
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.pannel-each {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 0.5rem;
}

.pannel-close {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    background: #87CEFA;
}

.pannel-close-item {
    flex-shrink: 0;
    margin: 0 1rem 0 1rem;
    font-size: 2rem;
}

.add-form-title {
    margin: 0 0 0 2rem;
    font-size: 2.4rem;
}

.add-form {
    overflow: hidden;
    margin: 2rem 4rem 2rem 2rem;
    padding: 1rem 1.6rem 1.6rem 1.6rem;
    border: 2px solid #eee;
    border-radius: 2rem;
    max-height: 100%;
}


.add-form-main {
    padding: 0 1rem 0 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.add-form-item {
    margin: 1.4rem 0 0 0;
}


input[type="text"],
input[type="password"] {
    background: #f2f2f2;
    box-shadow: 0 -0.4rem 0.6rem -0.4rem rgba(0, 0, 0, 0.2) inset;
    border: 1px solid #e6e6e6;
    border-radius: 0.6rem;
}

.add-form-item button {
    float: right;
}

.add-form-item_left {
    margin: 1rem 0 0 0;
}

.add-form-item_left button {
    float: left;
    margin: 0 1rem 0 0;
}


.attach {
    position: absolute;
    z-index: 100000;
    top: 7rem;
    right: 1rem;
    font-size: 1.6rem;
}
.attach-toggle {
    float: right;
    margin: 0 0 1rem 1rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 0 1.8rem 0 rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    user-select: none;
}
.attach-item {
    margin: 0 0 0.5rem 0;
}
.attach-text:hover {
    cursor: pointer;
}
.attach-del {
    color: red;
    text-decoration: underline;
}
.attach-del:hover {
    cursor: pointer;
}
.attach-toggle {
    font-weight: bold;
}
.attach-toggle:hover {
    cursor: pointer;
}
.attach-main {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.6rem 2rem;
    width: 40rem;
    max-height: 20rem;
    background: white;
    box-shadow: 0 0 1.8rem 0 rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

/* 列表管理页面样式 */
.list {
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 1rem 1rem 8rem 1rem;
    width: 100%;
    height: 100%;
}


.list-add {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    margin: 0 0 1rem 0;
    padding: 1.5rem;
    width: 100%;
    background: white;
    border-radius: 0.5rem;
}

.list-item-info {
    margin: 0 0 1rem 0;
}

.list-item-info span {
    margin-right: 0.6rem;
}

.list-item-left {
    flex-shrink: 1;
    padding: 0 1rem 0 0;
    width: 100%;
}

.list-item-right {
    flex-shrink: 0;
}


textarea {
    background: #f2f2f2;
    box-shadow: 0 -0.4rem 0.6rem -0.4rem rgba(0, 0, 0, 0.2) inset;
    border: 1px solid #e6e6e6;
    border-radius: 0.6rem;
}



/* 文章管理页面样式 */
.article {
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 1rem 1rem 8rem 1rem;
    width: 100%;
    height: 100%;
}

.article-add {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
}

.list-select {
    overflow-y: auto;
    max-height: 30rem;
}

.list-select-item {
    display: inline-block;
    margin: 0 0.4rem 0;
}

.article-item {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1rem 0;
    padding: 1.5rem 1.5rem;
    width: 100%;
    background: white;
    border-radius: 0.5rem;

}
.article-cont {
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}
.article-item span {
    line-height: 1.6em;
    margin-right: 0.5rem;
}

.article-item-left {
    flex-shrink: 1;
    box-sizing: border-box;
    padding: 0 1rem 0 0;
    width: 100%;
    height: 100%;
}


.article-oper {
    margin: 0 0 0 0.6rem;
    flex-shrink: 0;
}


.pannel-article {
    box-sizing: border-box;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
}

.pannel-article .add-form-title {
    margin: 0 0 0 1rem;
}

.pannel-article .pannel-close {
    width: 110rem;
    border-radius: 1rem;
}

.show-article {
    width: 110rem;
}